/*
 * =====================================================================================
 *
 *       Filename:  map.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  22.01.2010 12:15:42
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Michal Antonczak (uzyszkodnik), uzyszkodnik.priv@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */

#pragma once
#include <SDL/SDL.h>
#include <string>

#include "sdlstuff.h"
#include "wektor.h"
#include "gamestructs.h"
#include "moonlander.h"
#include "menu.h"

using namespace std;

class Short_map_info{
	private:
//		SDL_Surface* miniature;
		SDL_Surface* mini;
		SDL_Surface* name;
		TTF_Font* font;
		string name_str;
		SDL_Rect pos;
	public:
		Short_map_info(TTF_Font* mapfont, string path);
		~Short_map_info();
//		void load(string path);

	friend class Menu;

};

class Game_Map{
	private:
		SDL_Surface* img;
	public:
		struct physic_consts phys;
		struct ship ship_info;
		struct position_i posi;
		SDL_Surface* collision_map;
		Game_Map(string filepath);
		void readconfig(const char* str);	
		void show();
		~Game_Map();
		
		friend class Moonlander;
		friend class Short_map_info;
};
